﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace YLClient.UserControls
{
    /// <summary>
    /// Interaction logic for LabelButton.xaml
    /// </summary>
    public partial class LabelButton : UserControl
    {
        public LabelButton()
        {
            InitializeComponent();
            //this.AddHandler(Button.ClickEvent, new RoutedEventHandler(btnOp_Click));
            //this.MouseUp += new MouseButtonEventHandler(LabelButton_MouseUp);
        }

        void LabelButton_MouseUp(object sender, MouseButtonEventArgs e)
        {
            btnOp_Click(sender, e);
        }


        private void btnOp_Click(object sender, RoutedEventArgs e)
        {
            Froms.FrmNetSetting frm = new Froms.FrmNetSetting();
            frm.ShowDialog();
        }
    }
}
